﻿ var oProgressLayer=null;

function HideProgressInfo()
{
    if(oProgressLayer)
    {
        oProgressLayer.removeNode(true);
        oProgressLayer=null;
    }
}

function ShowProgressInfo()
{
    if(oProgressLayer) return;
    oProgressLayer=document.createElement('DIV');
    oProgressLayer.style.position = "absolute";
    oProgressLayer.style.width = 150;
    oProgressLayer.style.height = 30;
    oProgressLayer.style.top = getDocHeight() / 2 - 30;
    oProgressLayer.style.left = document.body.clientWidth / 2 - 80;
    oProgressLayer.innerHTML='<table border="0" width="100%" height="100%"><tr><td align="center" valign="middle"><img src="' + getAppPath() + 'common/images/icons/loading.gif" border="0" align="absmiddle" />正在处理,请稍候……</td></tr></table>' 
    document.body.appendChild(oProgressLayer);
}
//alert(onreadystatechange);
//ShowProgressInfo();


document.onreadystatechange = function()
{
    //alert(document.readyState);
    if (document.readyState == "complete")
    {
        HideProgressInfo();
    }
}